package com.google.guava.eventbus.internal;

import java.lang.reflect.Method;

/**
 * @author fuc
 * @create 2020-10-07
 */
public class MySubscriber {
  private final Object subscribeObject;
  private final Method subscriberMethod;
  private boolean disable = false;

  public MySubscriber(Object subscribeObject, Method subscriberMethod) {
    this.subscribeObject = subscribeObject;
    this.subscriberMethod = subscriberMethod;
  }

  public Object getSubscribeObject() {
    return subscribeObject;
  }

  public Method getSubscriberMethod() {
    return subscriberMethod;
  }

  public boolean isDisable() {
    return disable;
  }

  public void setDisable(boolean disable) {
    this.disable = disable;
  }
}
